#include <iostream>
#include "arr2d-template.hpp"

int main()
{
  int nr, nc;

  // Create a 2D array object with 5 rows and 4 columns. Initialize
  // the values to 1.0:
  Arr2d<std::string> arr2d(5,4, "Hello, World!");

  // Print the array:
  for(int i = 0; i < 5; i++){
    for(int j = 0; j < 4; j++) {
      std::cout << arr2d.get(i,j) << '\t';
    }
    std::cout << std::endl;
  }

  // Try to create a bad array:
  Arr2d<int> bad_array(3,-1, 0);

  return 0;
}
